import request from "@/request/request";
export function getProductDetail(productId) {
    return request({
        url: "/product/detail-info/"+productId,
        method: "get"
    });
}
//获取商品参数
export function getProductParams(productId){
    return request({
        url: "/product/detail-params/"+productId,
        method: "get"
    });
}
//获取商品评论
export function getProductComment(productId,pageNum,pageSize){
    return request({
        url: "/product/detail-comments/"+productId,
        method: "get",
        params:{
            pageNum:pageNum,
            pageSize:pageSize
        }
    });
}
//获取商品评论统计数据
export function getProductCommentCount(productId){
    return request({
        url: "/product/detail-comments-count/"+productId,
        method: "get"
    });
}